package com.boylegu.springboot_vue.dao;

import com.boylegu.springboot_vue.entities.Users;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface UsersRepository extends MongoRepository<Users, String> {

    public Users findById(String id);
    public Users findByName(String name);
    public Page<Users> findAll(Pageable page);
}
